Fixed namespacing bullshit from PHP.
Backported fixes on validator.