Fixed wrong array copy result in ArrayBuilders.insertInListNoDup

This bug caused a NullPointerException issue when module registration is duplicated