Add codegen for array length.