Fix hardware serial, add word

This change fixes the hardware serial stub to better enable ports. It also exposes the numeric base so that callers can use it, and implements the word macro