Fix old ref to typeof prior to inclusion in core and remove old docs code