Fix for getting all values of a record type. Fixes #324