Fix an issue with handle loads; the inner loop expects `$objects` to have only objects of the given type.

Auditors: btrahan