Improved parameter names in grammar. Added proper support for history
length 0, that takes the last known value. Fixed the order in
AbstractVDBSensor so that value is first put in database and then the
app is notified instead of the other way around. Changed the listener
for context typed value to only get a single value per reading instead
of array. This cannot happen and the API is ugly.