Simplify SArray implementation by relying on Java standard library and allow SArrays to store plain objects

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