Bump version 0.4.0: changed value representation for some types