Fix build-lookup-table so it can accept a standalone or vector as arguments