fixed bug for removing entity paths in array types. added debug
statements.