Removed lines assuming collections/action_collection structure is instantiated within a Bundle
Fixed incorrect id prefix
Fixed bundle id to support new id_ attribute
Converted BundleReference parameter to a list
Instantiated the Namespace class for automatic ID generation