Flesh out lastvalue widget

I think we also need to use ``0`` in the case where ``d.length == 1``?