Fixed a bug so that entity names can be Strings when defining a pattern
of which entities to process