fix bug for array; support the object without default constructor