fixed minimum capacity when passing a native array and improved performance