added constraints for b.color() and b.fill()

illegal channel values would previously produce strange results
add centermode to b.transform()

to be conform to b.rect()
minor yuidoc fix
bugfix to duplicate() and constrain(), added test for constrain()

Be careful, the original constrain function from processing.js did not
work properly in InDesign!