Make unit optional in CSS length values

Fixes #474