Added support for Triangle obstacle in serialization and deserialization of obstacle.