allow functions and percentage offsets for constants. fixes #404, #148
0.6.19