Update raml parser for datatypes
Updated code to parse self reference types