More work on generalized API for the Elements. Added test cases for addProperty()/getProperties(key).