Doc fixes &misc in Page class

* Resolve all PHPStorm's (many) errors and warnings
* Refuse to return directly from get_metadata
* Move a couple of large,clunky arrays out of function declarations