begin to change EntityType from class to enum #22
filed a bug: https://code.google.com/p/dart/issues/detail?id=21955