Simplify methods in Array.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Added some tests to ClassStructureTest

Signed-off-by: Stefan Marr <git@stefan-marr.de>