Tesla held onto its sizeable Bitcoin bags in the third quarter and upped its spending on artificial intelligence and research and development.