better patch for letting longs go as doubles