ISPN-4678 Trim down ExpandableMarshalledValueByteStream to the actual data length before storing in cache
Generate the component metadata file in the generated-resources directory, so that it doesn't force a recompile of the module every time.