Lists should still take in Double-s for keys, which are the Java-ized
number variables in addition to Integers.
Needed to special-case list constructor at top of method (just like
needed to for structs and maps).