allow inplace addition to update currval

This is an easy implementation for the feature discussed in #6.