updated to 0.2: compiles on gcc 4.6.3 and string scalar