Type support in layout fields

Add type keyword in layout fields and support for string field type.