Fix for PhoneNumberUtil.php failing to recognize extensions

This includes changes the order in which initialization functions are called in order to address the issue where extensions cannot be parsed.

My copy of the code also incorporates several bug fixes previously posted by resscode.