api_generator: set default constant types from property type (int, bool, float and string)