Build an array of key paths from an object.