make "attrib" value of Entity and Comment objects immutable
minor code simplification

--HG--
extra : amend_source : 25936db47914febfda79111cc6b7f21491c9db9c