How to use auto-complete reference field in a profile?
Based on testing on the demo server, it looks like custom contactRef fields do work when embedded in the "profiles" section of the contribution page, but fail to work properly when in the special "on behalf" profile. This looks like a bug.

Can you please file an issue in the bug tracker for this?