Clipboard: use templating instead of string comparisons for types. Move reinterpret_cast into Clipboard