[array] Fixed Valgrind stackoveflow error after runnig with m-param. Fixed all warnings.