Reference operator fixes

Fix a few project related things, and fix reference operators inside short arrays failing. PHPCS' isReference() does not take short arrays into account :cry: