Make srcDir option optional

The `serializer.srcDir` option is only used when using the serializer with annotations.  This change makes `serializer.srcDir` optional for users who choose to use the serializer without annotations.