added types for Entity and EntityVariableReference, scope for Controller

In ControllerBehaviour something other than SimpleRoleScope should be
used to enable also passing the passedObject of the Controller (I didn't
manage to do that). Please ignore the error in Hugo (or try to solve
it). I really don't know what it means, sorry.