Fix the issue that model name and model property type discrepancy.

Before the change, you will have Map[string, T] as model property type and Map[String, T] as model name (notice string vs String). This will lead to missing models in the SpecFilter.
Make SpecFilter aware of the Map data structure.