Updated function for getting machine name for a type to be able to return types. REOL-69