Modified encodeAny to use type assertions in addition to reflection, so that map[string]interface{}s can be encoded.