fix some introspections

Most of the changes were done automatically, no intentions to keep mixed stuff by myself, but time is limited :)

The changes add several typehints, which missing were kinda annoying.

I ran PHP CS Fixer too; except for the PSR-0 vendor namespace it didn't complain about anything.