Allow type permissions to have any name

Permissions can be associated with the root node which has an idno
starting with 'Root node for ' followed by the tree code. Allowing the
type attribute to be any string (xs:string) as is was previously to
allow these attribute values.
Removing empty restrictions from the profile
Re-enable other plugins so that their tests run
Merge pull request #121 from kehh/fixBrokenTests

Fix broken tests