Fixes #432, write out module for module.create layers.