Fix namespace typo

Not exactly sure what it does, but surely and $afm object was not supposed to have a property name `namepsace` ;)

Also fixed the jsdoc annotations for the `is...` functions - while formally correcting them i noticed the wrong type hint (if those were true the functions themselves would be superfluous ;) )