Added attribute 'length' + getter/setter to type 'Set' + unittest.

Signed-off-by: Phillipp Ohl <phillippohl@gmail.com>