Bugfix for readSerializableCollection(): incorrect input parameter
Add getTail() and hasPayload() methods