Add support for short primitives in JS and PHP.

This adds support for "bool" and "int" in place of "boolean" and "integer".