[Functions, Color] Add error-checking to retrieval, letting users know that first argument for palette_name must be a variable for a palette map rather than a simple string