Fix state_queue type checking to allow int values