Fixed ds.get and ds.getAll examples.

key and keys were missing in the callbacks.
Type checking hackery for Boolean and Number primitive types.
Test valueToProperty with primitive boolean and number.
Fixed typo
Fixed order and offset examples for queries.
Set offset to 0 for nextQuery of queries with offset.