Revert "property type defined twice."

Removed the wrong function.

This reverts commit 7990d64c97646300434871c1d28eface4690827b.
Remove definition of type returning string. Use type_name instead.