Updated LayerSpec wrapper to not default/set optional values to invalid values.