Initial implementation for Issue #322

Initial implementation of convenience methods for
AssignOutAndRefParametersLazily and corresponding tests.