Fixes matches function when re has global set
Casts getDefinitionByName argument to string
Somewhat implements some Capabilities and System properties
Merge pull request #852 from yurydelendik/spilgames-1

Misc fixes for spilgames