Rename resize to copyOf