Allow properties to be set on Scope

This pull request adds the ability to set properties on the scope closing #1297.