Parse color and alpha values more loosely; correct tests accordingly

Fixes #28