Ensure $in argument is a real BSON array when loading references

See #741.