[#521] added basic type check for the `me.Vector2d` constructor

this will help prevent breaking the internal global translation buffer
(see related ticket for more details)
[#525] fixed some linting issues