fixes #125: safely concat regexp and in/instanceof with compact: true

fixes #125