Revert "Revert "Use precise ApiMain/ApiQuery type hints in all API modules""

Change I632d1032 should take care of the fatal error.

This reverts commit 0f93f0171f65a5ef31c355f23fe73b7212fba42a.

Change-Id: Id722e579bef1349ab5afe503cb6809f6744a7c49
Merge "Revert "Revert "Use precise ApiMain/ApiQuery type hints in all API modules""" into wmf/1.24wmf6