Change type validate method of template resource

The type of template Resource property schema converted from parameter
is the same as input parameter type, including Number/String/Map/List.
Resource property schema type includes
Integer/String/Number/Boolean/Map/List. The Integer type is converted
from Number type, while Boolean type from String type.

Change-Id: Ic8ba281b5fb6e17a25fb8b5ba6a1102c827e42b9
Closes-Bug:#1317129
Merge "Change type validate method of template resource"