consistent representation of scalars. fixes #32