Regression test for ref-many and proxy support of custom IDs (#852)