BUG-869: Renamed getLength() method to length() in classes generated from typedefs.

Updated tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
Merge "BUG-869: Renamed getLength() method to length() in classes generated from typedefs." into stable/hydrogen