Fix #364. always pass a record to getType()