Transactions query() and some corrections

Partial fix for bug 56220 and some documentation corrections and
additions.

Patch 2: Added comments and documentation regarding SpecialTransaction.php
plus added int to a defined meaning comment.

Patch 3: Forgot to add Patch 2 corrections. Added the files as Patch 3.
Sorry.

Kindly commit if there are no errors or suggestions. Thanks!

Bug: 56220
Change-Id: I6732c607f0a4e22e59491fe177cfec022a87c1b1
Merge "Transactions query() and some corrections"