ruby: decoder - add refp/refn/alias/copy tag support; fix decoder for beaking on doubles