Fix bounds checking on cubic beziers to max specification.
Merge pull request #127 from shans/fixBoundsCheck

Fix bounds checking on cubic beziers to match specification.