record_get() hackery for OPAC/XML records now works for complex $type.