fix($resource): pass transformed value to both callbacks and promises

Closes #3817