Rename PTableType.USER to PTableType.TABLE, fix comparison check for ARRAY, support ALTER VIEW|TABLE, check expected table type against actual table type