Merge pull request #4130 from ScottNZ/lua-wip

Rewrite our Equals implementations
Merge pull request #4129 from ScottNZ/refactor

Refactor
Lua
Update build scripts for Lua