Support resources with more than 64 values. Fixes #489.