implement resolveFn in bindToInstance

R=arv
BUG=

Review URL: https://codereview.appspot.com/87760044