Rename addSamplesObject to addSampleObject.
Rely on a framework for the Swift additions.
More migration to the common Swift Additions framework.