Adapt script to R17
Add R17 UTF-8 encoding header
Avoid crash of connection when passed invalid parameters (e.g. atoms)
Allow non-null Weights in numerics
Add support for geometric types