Move: ws_array_init() to init callback

The ws_object type allows init callbacks, so the init function for the
object type should be used here.

One addition is added as well: The init callback does a type check
internally and returns false if the type is not an array.
Merge pull request #88 from matthiasbeyer/fix-array_init_callback

Move: ws_array_init() to init callback