Fix offset size calculation in the constant folder.

Fixes #18