Reyes, Greene homer in 9th, send Tigers past Royals 4-3