kernel: add support for init_array constructors