Corrected issue that could cause value decoding to sometimes fail.
Added missing append/prepend forward operations.
Added N1QL querying to stub generator.