Add more flexible parsing of time window length

using xsd:duration
Improve historic querying

* variable bindings are properly propagated
* variable bindings are now typed, not just string
* new Unit Test