Fix allowed_types bug

Caught in integration tests.