Added environment resolution during plankton encoding/decoding.