Added check for embedded classes in getTypeOfField and return the class name of the embedded class as type.