[Issue 1261] - constructor passed to scope is threated as a property

This is a fix for #1261.