Fixed AMD check to also test for `define.amd`
Parse color and alpha values more loosely; correct tests accordingly

Fixes #28
T