[4.2] Some typehints and others fixes (Collection.php)