Renamed getLength() method to length() in classes generated from typedefs.

Updated tests.

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