Fix #allowed_types to response correctly

#allowed_types currently returns 'integer' which is not correct here.
I'm expecting this to fix #412.