Fixed namespace regression + 5.3 compatibility in tests

It looks like I broke namespaced classes with my previous PR (definition inheritance) - this patch should fix that issue. I've also removed an instance of 5.4 array-literal syntax in the tests - I have no real issue with the tests being 5.4+ only but it makes sense to have them 5.3 compatible if the library is.