#2296 Adding support for cloudformation UsePreviousValue parameter

In response to issue #2296.