Fix wrong variable name and generated pretty printer in Entity language.