Pass by reference automation updates

@rev rjayaramappa@
Merging origin/tbliss/master-pending-pass-by-reference-2 into master