Bug 65312: Make RecordType.byName work for type "formula" Also avoid NullPointerException when parsing unexpected record types and check for bounds in byId()