Other part of the issue turned out to be that background layer colors are ignored due to json_decode/json_parse incorrectly decoding numbers over 2^31 that are not followed by a . character (ticket 180295), which is fixed in the new release.
.